/*河南星辰软件科技有限公司
@copyright Copyright (c) 2010~2022 All rights reserved.
*/
package cn.javaxc.crm.action.sale.potential;
import java.io.*;
import java.util.*;
import java.sql.*;
import cn.javaxc.model.base.SQL;
import cn.javaxc.model.base.SQLList;
import cn.javaxc.model.base.SQLMap;
import cn.javaxc.model.base.SQLParam;
import cn.javaxc.model.page.BatisPage;
import cn.javaxc.mvcwork.controller.web.TreeBean;
import cn.javaxc.mvcwork.util.common.CommonUtil;
import cn.javaxc.mvcwork.util.common.MapListUtil;
import cn.javaxc.mvcwork.util.helper.FrameHelper;
import cn.javaxc.mvcwork.util.helper.TreeTableHelper;
import org.springframework.beans.factory.annotation.Autowired;
import cn.javaxc.system.action.base.BaseAction;
import cn.javaxc.crm.mapper.sale.potential.CartogramManageMapper;
public class CartogramManage extends BaseAction
{
    @Autowired(required=false)
	private CartogramManageMapper mapper;
    /**
    转成客户
    */
    
    public Map cartogramManage() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        SQLList<SQLMap> clientrate=mapper.clientrate(params);
        result.put("clientrate", clientrate);
        
        
        SQLList<SQLMap> message=mapper.message(params);
        SQLMap message_emt=message.getExistfirst();
        result.put("message", message_emt);
        
        return result;
    }
    /**
    明细公用页
    */
    
    public Map potentialPubDet() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        SQLList<SQLMap> phones=mapper.phones(params);
        result.put("phones", phones);
        
        
        SQLList<SQLMap> address=mapper.address(params);
        SQLMap address_emt=address.getExistfirst();
        result.put("address", address_emt);
        
        
        SQLList<SQLMap> email=mapper.email(params);
        result.put("email", email);
        
        
        SQLList<SQLMap> moment_info=mapper.moment_info(params);
        result.put("moment_info", moment_info);
        
        
        SQLList<SQLMap> baidumap=mapper.baidumap(params);
        result.put("baidumap", baidumap);
        
        return result;
    }
    /**
    转成客户
    */
    
    public Map cartogramPotManage() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        SQLList<SQLMap> clientrate=mapper.clientrate(params);
        result.put("clientrate", clientrate);
        
        
        SQLList<SQLMap> message=mapper.message(params);
        SQLMap message_emt=message.getExistfirst();
        result.put("message", message_emt);
        
        return result;
    }
    /**
    转成客户修改
    */
    
    public Map cartogramManageSubmit() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        mapper.cartogramManageSubmit(params);
        
        return result;
    }
    /**
    */
    
    public Map u_text() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        mapper.u_text(params);
        
        return result;
    }
    /**
    */
    
    public Map u_moment() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        mapper.u_moment(params);
        
        return result;
    }
    /**
    */
    
    public Map u_email() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        mapper.u_email(params);
        
        return result;
    }
    /**
    */
    
    public Map u_phones() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        mapper.u_phones(params);
        
        return result;
    }
    /**
    */
    
    public Map d_text() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        mapper.d_text(params);
        
        return result;
    }
    /**
    */
    
    public Map d_moment() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        mapper.d_moment(params);
        
        return result;
    }
    /**
    */
    
    public Map d_email() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        mapper.d_email(params);
        
        return result;
    }
    /**
    */
    
    public Map d_phone() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        mapper.d_phone(params);
        
        return result;
    }
    /**
    转成客户修改
    */
    
    public Map cartogramPotManageSubmit() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        mapper.cartogramPotManageSubmit(params);
        
        return result;
    }
}